<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>04购物车-设置发票信息</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="screen-orientation" content="portrait">
<meta name="x5-orientation" content="portrait">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<link href="css/public.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<script src="js/jquery-2.1.4.min.js"></script>
</head>
<body class="graybody">
<!-- header -->
<header class="header">
	<div class="header_left"><a href="#" class="returnico"></a></div>
	<div class="header_center fontcolor">发票信息</div>
    <div class="header_right fapiao_a fontcolor"><a href="#" >确定</a></div>
</header>
<div class="whitebormar">
	<h4 class="halfbortit">发票内容</h4>
    <p class="fpxzp">非图书商品</p>
    <div class="fpxzdiv">
        <p><span class="gwcradio gwcchecked"><input type="radio" name="fpcheck" id="fpcheck" checked="checked" /></span><label for="fpcheck">不开发票</label></p>
        <p><span class="gwcradio"><input type="radio" name="fpcheck" id="fpcheck2" /></span><label for="fpcheck2">我需要开发票</label></p>
    </div>
</div>
<!--原版本
<div class="whitebormar" id="fptt"><div class="orderly"><p class="height25">发票抬头</p><input type="text" placeholder="可填写个人或单位名称" maxlength=""></div></div>-->
<!--7-14修改版本-->
<div class="whitebormar fapiao_box" id="fptt">
	<table  border="0" cellpadding="0" cellspacing="0" id="gwcfptab" class="fapiao_table">
		<tbody>
		<tr>
			<td class="fpLeft_td" valign="top">开具方式：</td>
			<td class="fpRight_td">
				<label><input type="radio" name="fpfangshi" value="普通发票（纸质）"> 普通发票（纸质）</label>
				<label><input type="radio" name="fpfangshi" value="增值税发票"> 增值税发票</label>
			</td>
		</tr>
		<tr>
			<td class="fpLeft_td" valign="top">发票抬头：</td>
			<td class="jfapiaotaitou fpRight_td">
				<label><input type="radio" name="fptaitou" value="个人" id="radio6"> 个人</label>
				<label><input type="radio" name="fptaitou" value="单位" id="radio7" class="jdanweifp"> 单位</label>
				<input type="text" class="jtianxiedanwei fpTt_input" name="fapiaotaitou" placeholder="选单位时填写发票抬头" />
			</td>
		</tr>
		<tr>
			<td class="fpLeft_td" valign="top">发票内容：</td>
			<td class="fpRight_td">
				<label><input type="radio" name="fpcontent" value="明细"> 明细</label>
				<label><input type="radio" name="fpcontent" value="办公用品"> 办公用品</label>
				<label><input type="radio" name="fpcontent" value="电脑配件"> 电脑配件</label>
				<label><input type="radio" name="fpcontent" value="耗材"> 耗材</label>
			</td>
		</tr>
		</tbody>
	</table>
</div>
<script>
$(function(){
	//发票选择
	$(".fpxzdiv .gwcradio").click(function(){
		$(this).addClass("gwcchecked").find("input").attr("checked",true);
		$(this).parent("p").siblings("p").find(".gwcradio").removeClass("gwcchecked").find("input").attr("checked",false);
		var index = $(this).parent("p").index();
		if(index==1){
			$("#fptt").show();
		}else{
			$("#fptt").hide();
		}
	});
});
</script>
</body>
</html>